---
title: "SQL-004: Select all task action codes"
summary: Retrieve the full TASK_ACTION_CODE reference list ordered by description.
status: draft
owner: SAIF Documentation
last_reviewed: 2026-08-21
library: SAIF.Business.Tasks
reference_type: embedded
---

# SQL-004 Select all task action codes

Retrieves the complete `TASK_ACTION_CODE` reference list, ordered by description, for populating a full action-code lookup collection.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-004 |
| **Operation type** | Read |
| **Execution method** | Inline SQL |
| **Database** | Oracle |
| **Schema** | `[unqualified]`** |
| **Command type** | Text |
| **Business object** | `clsTaskActionCodeCollection` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | `BeforeRetrieve` / `AfterRetrieve` |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [TASK_ACTION_CODE](../database-tables.md#task_action_code) | SELECT | `CODE`, `CODE_DESCR` |

## Sample SQL

```sql
SELECT
  TASK_ACTION_CODE.CODE AS Code,
  TASK_ACTION_CODE.CODE_DESCR AS CodeDescr
FROM
  TASK_ACTION_CODE
ORDER BY
  CODE_DESCR
```

## Operations and processes
- [Load a code table](../operations/load-code-table.md)

## Business rules
- [BR-023: Code tables are read-only reference data](../business-rules.md#br-023-code-tables-are-read-only-reference-data)

## Sources
- SAIF.Business.Tasks/clsTaskActionCodeCollection.vb
